package com.hp.order_service.wxpay;

import java.io.InputStream;

/**
 * 微信支付配置
 */
public class MyWXConfig extends WXPayConfig {

    //账户的APPID
    public String getAppID() {
        return "wx307113892f15a42e";
    }

    //商户ID
    public String getMchID() {
        return "1508236581";
    }

    //秘钥
    public String getKey() {
        return "HJd7sHGHd6djgdgFG5778GFfhghghgfg";
    }

    public InputStream getCertStream() {
        return null;
    }

    public IWXPayDomain getWXPayDomain() {
        return new WXPayDomain();
    }

    class WXPayDomain implements IWXPayDomain{

        public void report(String domain, long elapsedTimeMillis, Exception ex) {

        }

        public DomainInfo getDomain(WXPayConfig config) {
            return new DomainInfo("api.mch.weixin.qq.com",true);
        }
    }
}
